package org.jeecg.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.domain.Goods;

import java.util.List;

@Mapper
public interface GoodsMapper {

    @Select("select * from goods")
    List<Goods> queryAll();

    @Insert("insert into goods values (#{id},#{descript},#{photo},#{newCommodity},#{floorNo},#{categories},#{acceptMethod},#{price})")
    void insertGoods(Goods goods);

    @Select("select * from goods where id = #{goodId}")
    Goods queryGoods(String goodId);

}
